using System;
using System.Collections.Generic;
using System.Text;

namespace XProject.Entity
{
   public class BookShelf
    {
       int id;
       string name;
       string label;
       public BookShelf() {
           this.id = -1;
           this.name = "";
           this.label = "";
       }
       public BookShelf(string _name, string _label)
       {
           this.id = -1;
           this.name = _name;
           this.label = _label;
       }
       #region properties
       public int BookShelfID
       {
           get { return id; }
           set { id = value; }
       }
       public string Name
       {
           get { return name; }
           set { name = value; }
       }
       public string Label
       {
           get { return label; }
           set { label = value; }
       }
       #endregion
       #region methods
       public override bool Equals(object obj)
       {
           BookShelf bs = obj as BookShelf;
           return this.id==bs.id;
       }
       #endregion
   }
}
